/*
 * @Author: yxiawen
 * @Date: 2021-09-02 11:20:22
 * @LastEditTime: 2021-09-02 11:20:23
 * @LastEditors: yxiawen
 * @Description:apis
 * @FilePath: /frontend-c/pek-portal/src/apis/index.js
 */

const files = require.context("./modules", false, /\.js$/);

const apis = {};

for (const key of files.keys()) {
  const keyArr = key.split("/");
  keyArr.shift(); // 移除.
  apis[keyArr.join(".").replace(/\.js$/g, "")] = files(key);
}

export default apis;
